import Mock from 'mockjs';
import userInfo from './userInfo'
import billList from './billList'
import billDetail from './billDetail'
import fansClub from './fansClub'

// const random = Mock.Random
const mock = Mock.mock


Mock.setup({
    timeout: '100-500'
})

const config = {
    'http://webcast.bytedance.com/api/get_user_info': userInfo,
    "http://webcast.bytedance.com/api/bill/list": billList,
    "http://webcast.bytedance.com/api/bill/detail": billDetail,
    'http://webcast.bytedance.com/api/get_fans_list': fansClub
}


const init = () => {
    Object.entries(config).map(item=>mock.apply(null,item))
}
export default init